import request from '@/router/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/mes-product/ems-equipment-category/page',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    });
};

export const getDetail = (id) => {
    return request({
        url: '/api/mes-product/ems-equipment-category/detail',
        method: 'get',
        params: {
            id
        }
    });
};

export const remove = (ids) => {
    return request({
        url: '/api/mes-product/ems-equipment-category/remove',
        method: 'post',
        data: ids
    });
};

export const addOrUpdate = (row) => {
    return request({
        url: '/api/mes-product/ems-equipment-category/submit',
        method: 'post',
        data: row
    });
};
